package frobagroup.entities.backstage;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.*;

/**
 * Created by Tinsley on 2018/5/15.
 */
@Data
@NoArgsConstructor
@Document(collection = "product")
public class Product {

    @Id
    private String id;
    private String productName;
    private Date commitTime;
    private Date updateTime;
    private String status;
    private String sId;
    private double price;
    private double  discountPrice;
    private String desc;
    private String type;
    private String title;
    private int stock;
    private List<String> sizes = new ArrayList<>();
    private List<String> productColors = new ArrayList<>();
    private String productPic;
    private String setTopType;
    private String ingredients;
    private Set<String> relatedProductsIds = new HashSet<>();
    private int browseNumbers;
    private String brandName;
    private String placeOfProduction;
    private String  qualityGuaranteePeriod;
    private String reminder;
    private Set<String> imgIds = new HashSet<>();
    private Set<String> commentIds = new HashSet<>();
    private boolean mustCheckOut;

}
